﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.GatewayApp
{
    /// <summary>
    /// 网关服务特性
    /// </summary>
    [AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class GatewayServiceAttribute : Attribute
    {
        public GatewayServiceAttribute(string serivceName)
        {
            this.SerivceName = serivceName;
        }

        /// <summary>
        /// 获取服务名称
        /// </summary>
        public string SerivceName { get; private set; }

        public override string ToString()
        {
            return this.SerivceName;
        }
    }
}
